
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
	<head>
		<%@ include file="/commons/meta.jsp"%>
	</head>

	<body>
		<table width="100%" height="100%" border="0" cellpadding="0"
			cellspacing="0">

			<tr>
				<td align="center" valign="top">
					<div id="position">
						当前位置：工单系统 - 流程管理 -子流程管理
						<s:if test="id == null">添加子流程</s:if>
						<s:else>修改子流程</s:else>
					</div>
					<form name="form1" method="post"
						action="${ctx}/workorder/flow!save.action">
						<input type="hidden" name="flowClassId" value="${flowClassId}">
						<table width="95%" border="0" cellspacing="2" cellpadding="2">
							<font color="red">${msg}</font>
							<tr>
								<td class="name">
									<s:if test="id == null">添加子流程</s:if>
									<s:else>修改子流程</s:else>
								</td>
							</tr>
						</table>
						<table width="95%" border="0" cellspacing="1" cellpadding="2"
							bgcolor="#CEEFFF">
							<tr>
								<td width="100" bgcolor="#FFFFFF">
									<div class="item">
										名称:
									</div>
								</td>
								<td bgcolor="#FFFFFF">
									<input name="name" type="text" size="20">
									<font color="red"> *</font>
								</td>
							</tr>
							<tr>
								<td width="100" bgcolor="#FFFFFF">
									<div class="item">
										备注:
									</div>
								</td>
								<td bgcolor="#FFFFFF">
									<input name="memo" type="text" size="100">
								</td>
							</tr>
						</table>
						<table width="95%" border="0" cellspacing="2" cellpadding="2"
							bgcolor="#CEEFFF">
							<tr>
								<td align="left">

									<input type="reset" name="Submit3" onClick="doNext()"
										value="下一步">
									<input type="button" name="Submit2" onClick="add()" value="结束">
									<input type="button" name="Submit1" onClick="returnBack()"
										value="返回">
								</td>
							</tr>
						</table>
					</form>
				</td>
			</tr>
		</table>
		<script>
		function add(){
			${'form1'}.submit(); 
		}
	
		function doNext(){
			${'form1'}.action="${ctx}/workorder/flow!next.action"; 
			${'form1'}.submit(); 
		}
		
		function returnBack(){
			document.location="${ctx}/workorder/flow.action?flowClassId=${flowClassId}";
		}
		</script>
	</body>
</html>
